package Day21.MethodReference;

/**
 * @version 1.0
 * @BelongsProject:IntelliJ IDEA
 * @BelongsPackage:Day21.MethodReference
 * @Author:hyhWTX
 * @ClassName:Demo02PrintRef
 * @CreateTime:2022年-10月-19日 22:37
 * @Description: TODO (一句话描述以下该类的功能)
 */
public class Demo02PrintRef {
    private static  void printString(Printable data){
        data.print("hello world");
    }

    public static void main(String[] args) {
        printString(System.out::println);
    }
}
